﻿chartstr.Append("	chart = new Highcharts.Chart({							");
chartstr.Append("		chart: {						");
chartstr.Append("			renderTo: 'container', 					");
chartstr.Append("			defaultSeriesType: 'area'					");
chartstr.Append("		},						");
chartstr.Append("		title: {						");
chartstr.Append("			text: 'US and USSR nuclear stockpiles'					");
chartstr.Append("		},						");
chartstr.Append("		subtitle: {						");
chartstr.Append("			text: 'Source:<a href="http://blog.csdn.net/zhoufoxcn">zhoufoxcn</a>'					");
chartstr.Append("		},						");
chartstr.Append("		xAxis: {						");
chartstr.Append("			labels: {					");
chartstr.Append("				formatter: function() {				");
chartstr.Append("					return this.value; // clean, unformatted number for year			");
chartstr.Append("				}				");
chartstr.Append("			}					");
chartstr.Append("		},						");
chartstr.Append("		yAxis: {						");
chartstr.Append("			title: {					");
chartstr.Append("				text: '{#title#}'				");
chartstr.Append("			},					");
chartstr.Append("			labels: {					");
chartstr.Append("				formatter: function() {				");
chartstr.Append("					return this.value / 1000 +'k';			");
chartstr.Append("				}				");
chartstr.Append("			}					");
chartstr.Append("		},						");
chartstr.Append("		tooltip: {						");
chartstr.Append("			formatter: function() {					");
chartstr.Append("				return this.series.name +' produced <b>'+				");
chartstr.Append("					Highcharts.numberFormat(this.y, 0) +'</b><br/>warheads in '+ this.x;			");
chartstr.Append("			}					");
chartstr.Append("		},						");
chartstr.Append("		plotOptions: {						");
chartstr.Append("			area: {					");
chartstr.Append("				pointStart: 1940,				");
chartstr.Append("				marker: {				");
chartstr.Append("					enabled: false,			");
chartstr.Append("					symbol: 'circle',			");
chartstr.Append("					radius: 2,			");
chartstr.Append("					states: {			");
chartstr.Append("						hover: {		");
chartstr.Append("							enabled: true	");
chartstr.Append("						}		");
chartstr.Append("					}			");
chartstr.Append("				}				");
chartstr.Append("			}					");
chartstr.Append("		},						");
chartstr.Append("       series: ");
chartstr.Append(GetSeries(seriesList));
chartstr.Append("	});							");

